package com.dly.blog.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dly.blog.meta.MetaObject;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

@TableName(value ="blog_product")
@Data
@EqualsAndHashCode(callSuper = true)
public class Product extends MetaObject implements Serializable {

    @TableId
    private String id;

    /**
     * 名称
     */
    private String name;

    /**
     * 次数
     */
    private Integer frequency;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 预览图片
     */
    private String fileId;

    /**
     * 描述
     */
    private String description;

    /**
     * 优先级
     */
    private Integer priority;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
